function disguise_curl($url)<br />
{<br />
$login_url = 'http://www.trang_target_de_lay_tin.com/register'; <br />
//$data = array('username' =&gt; 'your_username', 'password' =&gt; 'your_pass');<br />
$cookie_file_path = &quot;absolute_server_path/httpdocs/cookiejar/&quot;;<br />
<br />
$curl = curl_init();<br />
//login<br />
curl_setopt($curl, CURLOPT_URL, $login_url);<br />
curl_setopt($curl, CURLOPT_AUTOREFERER, true);<br />
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);<br />
//curl_setopt($curl, CURLOPT_TIMEOUT, 10);<br />
curl_setopt($curl, CURLOPT_POST, 1);<br />
//curl_setopt($curl, CURLOPT_POSTFIELDS, $data);<br />
curl_setopt($curl, CURLOPT_POSTFIELDS, 'username=your_username&amp;password=your_pass');<br />
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); <br />
curl_setopt ($curl, CURLOPT_COOKIEJAR, $cookie_file_path);<br />
$login = curl_exec($curl); // execute the curl command<br />
<br />
//get real content<br />
curl_setopt($curl, CURLOPT_URL, $url);<br />
$html = curl_exec($curl);<br />
<br />
// close the connection<br />
curl_close($curl); <br />
<br />
return $html; // and finally, return $html<br />
}